﻿//https://learn.microsoft.com/zh-cn/dotnet/fundamentals/networking/http/httpclient
HttpClient client = new HttpClient();
for (int i = 0; i < 100; i++)
{
    string url = "https://www.baidu.com";
    string str = await GetAsync(client,url);
    Console.WriteLine(str);
}

static async Task<string> GetAsync(HttpClient client,string url)
{    
    using var res = await client.GetAsync(url);
    string str = await res.Content.ReadAsStringAsync();
    return str;
}